package com.group.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.group.pojo.TbCustomer;

public interface CustomerService {
   //根据id查询客户名称
	public String query(String id);
	//根据Id查询客户的详情
	public TbCustomer getCustomerInfoById(String id);
	//查询所有的客户信息
	public List<TbCustomer> getAllCustomers();
	//添加客户的信息
	public Map<String, String> saveCustomerInfo(HttpServletRequest request, TbCustomer customer);
	//更新客户的信息
	public Map<String, String> updateCustomerInfo(TbCustomer customer);
	//删除客户信息
	public Map<String, String> deleteCustomerInfo(String[] customerIds);
	//重置客户登录密码
	public Map<String, String> resetCustomerPassword(String customerId);
	//校验登录名
	public String checkLoginName(String loginName);
	//通过客户姓名查询客户的id
	public String getcustomerIdbyName(String customerName);
	//校验登录名是否存在
	public String CheckCustomerName(String customerName);
	
	
	
	
	
	
	
	
	public List<TbCustomer> query(TbCustomer customer);
}
